package com.hc.crm.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.hc.crm.mapper.BasDictMapper;
import com.hc.crm.pojo.BasDict;
import com.hc.crm.service.IBasDictService;

public class IBasDictServiceImpl implements IBasDictService {

	@Autowired
	private BasDictMapper basDictMapper;
	
	
	@Override
	public List<BasDict> getBasDictArea() {
		Map<String,Object> param = new HashMap<>();
		param.put("dictType", "地区");
		return basDictMapper.findBasDictPage(param);
	}

	@Override
	public List<BasDict> getBasDictCredit() {
		Map<String,Object> param = new HashMap<>();
		param.put("dictType", "信用度");
		return basDictMapper.findBasDictPage(param);
	}

	@Override
	public List<BasDict> getBasDictStar() {
		Map<String,Object> param = new HashMap<>();
		param.put("dictType", "星数");
		return basDictMapper.findBasDictPage(param);
	}

	@Override
	public List<BasDict> getBasDictLevel() {
		Map<String,Object> param = new HashMap<>();
		param.put("dictType", "级别");
		return basDictMapper.findBasDictPage(param);
	}

	@Override
	public List<BasDict> getBasDictBy(Map<String, Object> param) {
		return basDictMapper.findBasDictPage(param);
	}
}
